﻿@using System.Text
@using Wx.Base
@using LiuYan.Web.Controllers
@{
    ViewBag.Title = "空asp.net mvc 应用程序getcode";
}
<h1>code</h1>
@{
    

    string str = "http://www.Wx.lzfbk.com/";
    str = Server.UrlEncode(str);
    if (Request["code"] == null)
    {
        WxStr.OauthUrl = string.Format(WxStr.OauthUrl, WxStr.appid, str);
        Response.Redirect(WxStr.OauthUrl);
    }
    else
    {
        Response.Write(str);
        Response.Write("</br>");
        Response.Write(Request["code"]);
    }



}

